import { network } from '@/utils';
import { TableListParams, operationParams } from './data.d';

import { logisCenter } from '../../../../../config/Apis';

export async function queryTakingList(params: TableListParams) {
  return network.get(logisCenter.taking_list, {
    params,
  });
}

export async function queryTakingCount(params: TableListParams) {
  return network.get(logisCenter.taking_count, {
    params,
  });
}

export async function operationQueset(params: operationParams) {
  const { pathName, ...query } = params;
  return network.put(logisCenter[pathName], { data: query });
}
